package com.chen.servicedriveruser.controller;

import com.chen.servicedriveruser.mapper.DriverUserMapper;
import com.chen.servicedriveruser.service.DriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenLiuPing
 **/
@RestController
public class TestController {

    @Autowired
    private DriverUserService driverUserService;

    @GetMapping("/test")
    public String test() {
        return driverUserService.testDB();
    }

    @Autowired
    private DriverUserMapper driverUserMapper;
    /**
     * 测试mapper.xml
     */
    @GetMapping("/test-xml")
    public String testXml() {
        return driverUserMapper.selectDriverUserCountByCityCode("1111") + "";
    }
}
